<template>
	<view class="mainCon">

		<view class="empty" style="margin-top: 55rpx;" v-if="list.length==0">
			<u-empty text="暂无相关数据" mode="list"></u-empty>
		</view>
		<view class="listCon">
			<view class="listItem" v-for="(item, index) in list" :key="index">
				<view class="infoCon">
					<view>
						<view class="cellItem"  v-if="item.STATUS === '1'">
							<view class="label">
								预约车辆数：
							</view>
							<view class="value">
								{{item.TOL}}
							</view>
						</view>

						<view class="cellItem" v-if="item.STATUS === '2'">
							<view class="label">
								在港车辆数：
							</view>
							<view class="value">
								{{item.TOL}}
							</view>
						</view>
					</view>
				</view>

			</view>
		</view>
	</view>
</template>

<script>
import { data } from 'uview-ui/libs/mixin/mixin';
	export default {
		data() {
			return {
				customStyle: {
					height: '60rpx',
				},
				formData: {
					CNTR: '',
					rows: []
				},
				list: [],
				flag: false,
				baseUrl: 'http://localhost:9051'
			};
		},
		onLoad() {
		this.getList()
		},
		methods: {
			getList() {
				uni.showLoading({
					title: '加载中...'
				})
				uni.request({
					url: 'https://api.zlkj-port.com/szgjapi/zlzg/Q/HxUCc2c13BoVrmF',
					method: "get",
					success: (res) => {
						this.list = res.data.rows
						uni.hideLoading()
					}
				});
			},
			onSearch() {
				this.getList()
			},	
		}
	}
</script>

<style lang="scss" scoped>
	::v-deep .u-form-item {
		padding: 6rpx !important;
	}

	page {
		background-color: #F2F1F9;
	}

	.headForm {
		padding: 20rpx;
		position: fixed;
		width: 100%;
		top: 0;
		z-index: 10;
		background-color: #FFFFFF;

		.btnGroup {
			display: flex;
			justify-content: space-around;
			align-items: center;
			margin-top: 15rpx;
		}
	}

	.listCon {

		.listItem {
			margin-left: 10px;
			padding: 20rpx;
			border-bottom: 1px solid $u-border-color;
			display: flex;
			align-items: center;



			.infoCon {

				display: flex;
				align-items: center;
				justify-content: space-between;

				.cellItem {
					display: flex;
					align-items: center;
					font-size: 28rpx;

					.label {
						font-size: 20px;
						font-weight: 500;
					}
					.value {
						font-size: 20px;
						font-weight: 500;
					}
				}

				.labelTag {
					background-color: #E0EDFB;
					color: #4C86E7;
					line-height: 50rpx;
					border-radius: 25rpx;
					font-size: 26rpx;
					text-align: center;
					padding-right: 15rpx;
					padding-left: 15rpx;
				}

				.labelTagpay {
					background-color: #85da96;
					color: #3757e7;
					line-height: 50rpx;
					border-radius: 25rpx;
					font-size: 26rpx;
					text-align: center;
					padding-right: 15rpx;
					padding-left: 15rpx;
				}

				.labelTagnopay {
					background-color: #ff7563;
					color: #ffffff;
					line-height: 50rpx;
					border-radius: 25rpx;
					font-size: 26rpx;
					text-align: center;
					padding-right: 15rpx;
					padding-left: 15rpx;
				}

				.checkBox {}
			}
		}
	}
</style>
